package demo2;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String str1 = scanner.nextLine();
        String str2 = scanner.nextLine();
        StringBuilder stringBuilder1=new StringBuilder(str1);
        StringBuilder stringBuilder2=new StringBuilder(str2);
        for (int i = 0; i < stringBuilder2.length(); i++) {
            char c = stringBuilder2.charAt(i);
            for (int j = 0; j < stringBuilder1.length(); j++) {
                if(c==stringBuilder1.charAt(j)){
                    stringBuilder1.deleteCharAt(j);
                    j--;
                }
            }

        }
        System.out.println(stringBuilder1);
    }
}
